<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<html>
  <head>
    <title>登录</title>
    <link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css"/>
	<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css"/>
  </head>
  
<script type="text/javascript">
	
	function submitSubFunc () {
		document.forms[0].submit() ;	
	}


	function showFun(){
		    var str="";
			var item=window.showModalDialog("${ctx}/user/user_manaFun.action?funcstr="+ str,window,"scroll:yes;dialogHeight=500px;dialogWidth=420px;");
		var names ="";
        var ids ="";
	   if(item != null){
	          names += item[0][0];
	          ids += item[0][1];
	      }
	      	
      	document.getElementById("funcname").value = names;
      	document.getElementById("funcId").value = ids;
      
		}
		
		
		function cleart(){
      	document.getElementById("funcid").value = "";
		}		
</script>  
  
<body class="m_6 m_r">
<div id="main">
  
  <div class="b_add font14 bg3">栏目功能管理（${titleSub.subName}）</div>
<div id="info"><font color="red">${info}</font></div>

<form action="${ctx}/subFunc/subFunc_createSubFunc.action" method="post">

<input type="hidden" name="titleSub.subId" value="${titleSub.subId}" />

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_1">
  <tr>
    <td style="font-size:12px;">栏目编号：</td>
    <td style="font-size:12px;">
    <input type="text" value="${titleSub.titleCodeGroup}" class="fl_l" readonly />
    </td>
  </tr>
  <tr>
    <td style="font-size:12px;">栏目名称：</td>
    <td><input type="text" value="${titleSub.subName}" class="fl_l" readonly /></td>
  </tr>
  <tr>
    <td style="font-size:12px;">栏目注释：</td>
    <td><input type="text" value="${titleSub.subNameEn}" class="fl_l" readonly /></td>
  </tr>
  <tr>
    <td style="font-size:12px;">栏目类型：</td>
    <td><input type="text" value="<s:if test="titleSub.subType==0">非会员</s:if><s:if test="titleSub.subType==1">会员</s:if>" class="fl_l" readonly /></div></td>
  </tr>

  <tr>
    <td style="font-size:12px;">栏目功能：</td>
    <td>
    <input type="hidden" id="funcId"  name="titleSub.funcId" value="${titleSub.funcId }" />
    <input type="text" id="funcname" readonly name="" value="${titleFunc.funcName }" />   
    <input type="button" onclick="showFun()" value="+添加" class="log_f">
     <input type="button" onclick="cleart()" value="-清空" class="log_f">
    </td>
  </tr>

  <tr>
    <td colspan="2"><div class="zc_but2" >    
	<input type="button" onclick="submitSubFunc();" value="提交" class="log_f zc_b">
	<input type="button" onclick="javascript:reset();" value="重置" class="log_f zc_b">
	<input type="button" onclick="javascript:history.go(-1);" value="返回" class="log_f zc_b">
	</div></td>
    </tr>
  </table>

</div>
</form>
</body>
</html>